package cn.stronglink.assetmanage.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Transient;

import java.util.List;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Tgb on 2018/6/14.
 * 盘点
 */
@Entity
public class Inventory {
    @Id
    private Long inventory_id;    // 主键id
    private Long id;
    private String id_;           // 单子id
    private String updateTime;   // 执行时间
    private Long updateBy;       // 盘点时间
    private String roomName;      // 地点
    private int status;           // 状态
    private int orderType;        // 工单类型
    private String executeTime;   // 执行时间
    @Transient
    private List<InventoryDetail> detailList;

    // 盘盈的列表
    @Transient
    private List<InventoryDetail> moreOutList;

    @Keep
    public Inventory(Long inventory_id, Long id, String id_, String updateTime,
            Long updateBy, String roomName, int status, int orderType,
            String executeTime) {
        this.inventory_id = inventory_id;
        this.id = id;
        this.id_ = id_;
        this.updateTime = updateTime;
        this.updateBy = updateBy;
        this.roomName = roomName;
        this.status = status;
        this.orderType = orderType;
        this.executeTime = executeTime;
    }

    @Keep
    public Inventory() {
    }

    public List<InventoryDetail> getMoreOutList() {
        return moreOutList;
    }

    public void setMoreOutList(List<InventoryDetail> moreOutList) {
        this.moreOutList = moreOutList;
    }

    public List<InventoryDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<InventoryDetail> detailList) {
        this.detailList = detailList;
    }

    public int getOrderType() {
        return this.orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRoomName() {
        return this.roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public Long getUpdateBy() {
        return this.updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getId_() {
        return this.id_;
    }

    public void setId_(String id_) {
        this.id_ = id_;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getInventory_id() {
        return this.inventory_id;
    }

    public void setInventory_id(Long inventory_id) {
        this.inventory_id = inventory_id;
    }

    public String getExecuteTime() {
        return this.executeTime;
    }

    public void setExecuteTime(String executeTime) {
        this.executeTime = executeTime;
    }
}
